﻿@using System.Collections.Generic;
@using Think.Lenovo.Com.Models;
@using Think.Lenovo.Com.Models.Users;
@using System.Web.Mvc;
@using Think.Lenovo.Com.Common;
@using System.Web.Mvc.Html;
<link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Cache-Control" content="no" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/Scripts/ViewListDataReportTemplate.js"></script>
<body>
    @using System.Collections.Generic;
    @using Think.Lenovo.Com.Models;
    @using Think.Lenovo.Com.Models.Users;
    @using System.Web.Mvc;
    @using Think.Lenovo.Com.Common;
    @using System.Web.Mvc.Html;
    <html>
    <head>
        <link href="/Contents/css/skin.css" rel="stylesheet" type="text/css" />
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta http-equiv="Cache-Control" content="no" />
        <link rel="stylesheet" type="text/css" href="/Contents/resources/css/reset.css" />
        <link rel="stylesheet" type="text/css" href="/Contents/resources/css/style.css" media="screen" />
        <link id="color" rel="stylesheet" type="text/css" href="/Contents/resources/css/colors/blue.css" />
        <script type="text/javascript" src="/Scripts/lib/jquery-1.4.4.min.js"></script>
        <script type="text/javascript" src="/Scripts/ViewUploadDataReport.js"></script>
    </head>
    <body>
        <div id="content" style="background: url(/Contents/resources/images/background.png);">
            <!-- content / right -->
            <div id="right">
                <!-- table -->
                <div class="box">
                    <!-- box / title -->
                    <div class="title">
                        <h5>上传报表</h5>
                    </div>
                    <div class="table">
                        <div id="step1">
                            <table style="width: 100%">
                                <tr>
                                    <td>
                                    </td>
                                    <td align="center">
                                        模板id
                                    </td>
                                    <td align="center">
                                        模板名称
                                    </td>
                                    <td align="center">
                                        创建者
                                    </td>
                                    <td align="center">
                                        创建日期
                                    </td>
                                    <td align="center">
                                        修改时间
                                    </td>
                                </tr>
                                @{
                                    foreach (DataReportModel item in ViewBag.List)
                                    {
                                    <tr>
                                        <td align="center">
                                            <input type="radio" name="Id" value="@item.Id" />
                                        </td>
                                        <td align="center">
                                            @item.Id
                                        </td>
                                        <td align="center">
                                            @item.ReportName
                                        </td>
                                        <td align="center">
                                            @item.CreateUserId
                                        </td>
                                        <td align="center">
                                            @item.CreateDate
                                        </td>
                                        <td align="center">
                                            @item.ModifyDate
                                        </td>
                                        @* <td align="center">
                    <a href="javascript:deleteDataReport(@item.Id);">删除</a> |
                    <a href="/DataReport/DownLoadDataReport/@item.Id">下载</a> |
                </td>*@
                                    </tr>
                                    }
                                }
                            </table>
                            <input type="button" value="下一步" onclick="nextStep();" />
                            <div id="pager">
                                @{
                                    foreach (PageNumberModel p in ViewBag.Pager)
                                    {
                                        if (!p.IsCurrentPage)
                                        {
                                    <a href="@p.PageLink">@p.PageNum</a>
                                        }
                                        else
                                        {
                                    @p.PageNum
                                        }
                                    }
                                }
                            </div>
                        </div>
                        <div id="step2" style="display: none">
                            <form action="/DataReport/UploadDataReport" enctype="multipart/form-data" method="post">
                            <input type="hidden" id="templateId" name="templateId" value="" />
                            <input type="file" name="ExcelFile" />
                            <input type="submit" value="上传" />
                            </form>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </body>
    </html>
